package com.imau.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;


@TableName("t_permission")
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString

public class Permission implements Serializable {
    @TableField(exist=false)
    private static final long serialVersionUID = -4990810027542971546L;
    /**
     * 主键
     */
    @TableId(type= IdType.ASSIGN_ID)
    private String id;
    /**
     * 权限名称
     */
    private String name;
    /**
     * 权限类型 1 为菜单  2为功能  3为 API
     */
    private Integer type;

    /**
     * 权限标识编码
     */
    private String code;

    /**
     * 权限描述
     */
    private String description;

    /** 父id */
    private String parentId;

    /** 权限可见状态控制 */
    private Integer enVisible;

    public Permission(String name, Integer type, String code, String description) {
        this.name = name;
        this.type = type;
        this.code = code;
        this.description = description;
    }


}